package com.atguigu.edu.realtime.publisher.service.impl;

import com.atguigu.edu.realtime.publisher.bean.TradeCt;
import com.atguigu.edu.realtime.publisher.mapping.CourseTradeCountMapper;
import com.atguigu.edu.realtime.publisher.service.CourseTradeCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CourseTradeCountServiceImpl  implements CourseTradeCountService {
    @Autowired
    CourseTradeCountMapper courseTradeCountMapper;
    @Override
    public List<TradeCt> getSubjectOrderCnt(Integer date) {
        return courseTradeCountMapper.selectSubjectOrderCnt(date);
    }

    @Override
    public List<TradeCt> getCourseOrderCnt(Integer date) {
        return courseTradeCountMapper.selectCourseOrderCnt(date);
    }

    @Override
    public List<TradeCt> getCategoryOrderCnt(Integer date) {
        return courseTradeCountMapper.selectCategoryOrderCnt(date);
    }
}
